package de.unidue.langtech.teaching.pp.example.pipeline;

import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.CollectionReaderFactory;
import org.apache.uima.fit.pipeline.SimplePipeline;

import de.unidue.langtech.teaching.pp.example.TweetBaseline;
import de.unidue.langtech.teaching.pp.example.TweetEvaluator;
import de.unidue.langtech.teaching.pp.example.TweetReader;

/**
 * dieser Pipeline wird nicht benutzt, da der ExtendedPipeline besser geeignet ist.
 * (Inputfile --> eingabe der dev.datei (.txt)(
 * 
 * @author RANGEETH21
 *
 */
public class TweetBasicPipeline
{

    public static void main(String[] args)
    throws Exception
    {
        SimplePipeline.runPipeline(
                CollectionReaderFactory.createReader(
                        TweetReader.class,
                        TweetReader.PARAM_INPUT_FILE, "src/test/resources/test/devtest.txt"
                ),
                AnalysisEngineFactory.createEngineDescription(TweetBaseline.class),
                AnalysisEngineFactory.createEngineDescription(TweetEvaluator.class)
        );
    }
}
